<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
  <th:block th:include="include :: header('查看项目日志')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
  <form class="form-horizontal m" id="form-projectLog-edit" th:object="${projectLog}">
    <div class="form-group">
      <label class="col-sm-3 control-label">姓名：</label>
      <div class="col-sm-8">
        <input id="userName" name="userName" th:field="*{userName}" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">天气情况：</label>
      <div class="col-sm-8">
        <input id="logWeather" name="logWeather" th:field="*{logWeather}" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">工艺调整情况：</label>
      <div class="col-sm-8">
        <input id="logAdjust" name="logAdjust" th:field="*{logAdjust}" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">突发情况及应对说明：</label>
      <div class="col-sm-8">
        <input id="logSudden" name="logSudden" th:field="*{logSudden}" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">存在的问题：</label>
      <div class="col-sm-8">
        <input id="logProblem" name="logProblem" th:field="*{logProblem}" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">明天的工作计划：</label>
      <div class="col-sm-8">
        <input id="logWorkPlan" name="logWorkPlan" th:field="*{logWorkPlan}" class="form-control" type="text">
      </div>
    </div>
  </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
  var prefix = ctx + "project/projectLog";
  $("#form-projectLog-edit").validate({
    focusCleanup: true
  });

  function submitHandler() {
    if ($.validate.form()) {
      $.operate.save(prefix + "/edit", $('#form-projectLog-edit').serialize());
    }
  }
</script>
</body>
</html>
